package util

// ConditionalPicker 功能同三元运算符
func ConditionalPicker[T any](condition bool, trueValue T, falseValue T) T {
	if condition {
		return trueValue
	}
	return falseValue
}
